<%
	request.setAttribute("contextPath", request.getContextPath());
	request.setAttribute("apiBaseUrl",leap.core.AppContext.current().getConfig().getProperty("datasync.api.address"));
	/*request.setAttribute("currentUser", leap.lang.json.JSON.encode(bingosoft.components.security.SecurityContext.getCurrentUser()));*/
%>
<script>
	//全局变量
	var Global = Global || {};
	//网站根路径
	Global.contextPath = '${contextPath}';
	Global.rootContextPath = document.location.protocol + "//" + document.location.host + Global.contextPath;
	//接口访问根路径
	Global.apiBaseUrl = '${apiBaseUrl}';
	//当前用户信息
	/*Global.currentUser = eval("("+'${currentUser}'+")");*/
</script>